package com.njxzc.igo.service;

import com.njxzc.igo.model.User;
import com.njxzc.igo.model.UserType;
import com.njxzc.igo.utils.ShoppingResult;

import net.sf.json.JsonConfig;

public interface UserService {
	public ShoppingResult checkLogin(String name,String password);
	
	public ShoppingResult checkautoLogin(String name,String md5password);
	
	public ShoppingResult addUser(String name, String nick, String password);
	
	public User loadUserInfo(String username);
	
	public User loadAllUserAbout(User user);
	
	public UserType getUserType(int userTypeId);
	
	public ShoppingResult CheckIsRegisted(String username);
	
	public ShoppingResult RegistNewBuyerAccount(String  username,String  password,String  nickname,String  email,boolean sex,String  ques1,String  ans1,
			String  ques2,String  ans2,String  ques3,String  ans3); 
	
	public ShoppingResult RegistNewManageAccount(String  username,String  password,String  nickname,String  email,boolean sex); 

	public ShoppingResult ALoadAllUserInfoList();
	
	public ShoppingResult  AModifyPassword(String newPassword,User u );
	
	public UserVo  LoadUserVo(String username);

	public ShoppingResult LoadAllUserTypes();

	public ShoppingResult modifyUserTypes(String userId, String typeId);
}
